<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
      xmlns:h="http://xmlns.jcp.org/jsf/html">

    <body>

        <f:metadata>
            <f:event type="preRenderView" listener="#{selectedTeatro.preRender}"/>
        </f:metadata>

        <ui:composition template="./modelo.xhtml">

            <ui:define name="head">
                <link href="#{resource['css/teatro.css']}" rel="stylesheet"></link>
            </ui:define>



            <ui:define name="content">
                content #{selectedTeatro.selected}
                <br />



                <table>

                    <ui:repeat var="o" value="#{selectedTeatro.chairs}" varStatus="status">

                        <tr class="#{o.colorString}">
                            <td>#{o.id}</td>
                            <td>#{o.stateString}</td>
                        </tr>

                    </ui:repeat>

                </table>

            </ui:define>

        </ui:composition>

    </body>
</html>
